package com.aisile.task.jobs;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @Auther:yry
 * @Date:2024/1/11 0011
 * @VERSON:1.0
 */
@Component
public class HelloJob {


    @Value("${server.port}")
    private String appPort;

    @XxlJob("myJob")
    public ReturnT<String> test(String param){
        System.out.println(appPort+":--------》"+new Date());
        return ReturnT.SUCCESS;
    }

}
